package com.dandan.tzx.activity;

import android.net.Uri;
import android.os.Bundle;
import android.util.Log;

import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.facade.callback.NavCallback;
import com.dandan.tzx.router.DDRouter;

/**
 * Created by tanzhenxing
 * Date: 2017/12/26 下午2:32
 * Description: 用于M跳转的代理Activity
 */

public class SchameFilterActivity extends BaseActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Uri uri = getIntent().getData();
        Log.d(TAG, "onCreate() called with: savedInstanceState = [" + uri.toString() + "]");
        DDRouter.getInstance().build(uri).navigation(this, new NavCallback() {
            @Override
            public void onArrival(Postcard postcard) {
                SchameFilterActivity.this.finish();
            }
        });
    }

}
